package com.shizi.iship.dao.entity;

import java.io.Serializable;

/**
 * <p>
 * modbus采集点采集规则查询
 * </p>
 *
 * @author idea
 */
public class VmModbusPointCollectRule implements Serializable{

	private static final long serialVersionUID = 1L;

	private Integer modbusSlaveId;
	private String ip;
	private String port;
	private Integer function;
	private String dataType;
	private Integer groupType;
	private String startByte;
	private String endInt;
	private Integer minModbusAddress;
	private Integer maxModbusAddress;

	public Integer getModbusSlaveId() {
		return modbusSlaveId;
	}

	public VmModbusPointCollectRule setModbusSlaveId(Integer modbusSlaveId) {
		this.modbusSlaveId = modbusSlaveId;
		return this;
	}

	public String getIp() {
		return ip;
	}

	public VmModbusPointCollectRule setIp(String ip) {
		this.ip = ip;
		return this;
	}

	public String getPort() {
		return port;
	}

	public VmModbusPointCollectRule setPort(String port) {
		this.port = port;
		return this;
	}

	public Integer getFunction() {
		return function;
	}

	public VmModbusPointCollectRule setFunction(Integer function) {
		this.function = function;
		return this;
	}

	public String getDataType() {
		return dataType;
	}

	public VmModbusPointCollectRule setDataType(String dataType) {
		this.dataType = dataType;
		return this;
	}

	public Integer getGroupType() {
		return groupType;
	}

	public VmModbusPointCollectRule setGroupType(Integer groupType) {
		this.groupType = groupType;
		return this;
	}

	public String getStartByte() {
		return startByte;
	}

	public VmModbusPointCollectRule setStartByte(String startByte) {
		this.startByte = startByte;
		return this;
	}

	public String getEndInt() {
		return endInt;
	}

	public VmModbusPointCollectRule setEndInt(String endInt) {
		this.endInt = endInt;
		return this;
	}

	public Integer getMinModbusAddress() {
		return minModbusAddress;
	}

	public VmModbusPointCollectRule setMinModbusAddress(Integer minModbusAddress) {
		this.minModbusAddress = minModbusAddress;
		return this;
	}

	public Integer getMaxModbusAddress() {
		return maxModbusAddress;
	}

	public VmModbusPointCollectRule setMaxModbusAddress(Integer maxModbusAddress) {
		this.maxModbusAddress = maxModbusAddress;
		return this;
	}

	/** select字段常量定义 a.MODBUS_SLAVE_ID */
	public static final String MODBUS_SLAVE_ID = "a.MODBUS_SLAVE_ID";

	/** select字段常量定义 a.IP */
	public static final String IP = "a.IP";

	/** select字段常量定义 a.PORT */
	public static final String PORT = "a.PORT";

	/** select字段常量定义 a.`FUNCTION` */
	public static final String FUNCTION = "a.`FUNCTION`";

	/** select字段常量定义 a.DATA_TYPE */
	public static final String DATA_TYPE = "a.DATA_TYPE";

	/** select字段常量定义 a.GROUP_TYPE */
	public static final String GROUP_TYPE = "a.GROUP_TYPE";

	/** select字段常量定义 a.START_BYTE */
	public static final String START_BYTE = "a.START_BYTE";

	/** select字段常量定义 a.END_INT */
	public static final String END_INT = "a.END_INT";

	/** select字段常量定义 min(a.MODBUS_ADDRESS) */
	public static final String MIN_MODBUS_ADDRESS = "min(a.MODBUS_ADDRESS)";

	/** select字段常量定义 max(a.MODBUS_ADDRESS) */
	public static final String MAX_MODBUS_ADDRESS = "max(a.MODBUS_ADDRESS)";

 	/** 非select字段常量定义 a.STATUS */
	public static final String STATUS = "a.STATUS";

	/** 非select字段常量定义 a.TYPE */
	public static final String TYPE = "a.TYPE";

	@Override
	public String toString() {
		return "VmModbusPointCollectRule{" +
			", modbusSlaveId=" + modbusSlaveId +
			", ip=" + ip +
			", port=" + port +
			", function=" + function +
			", dataType=" + dataType +
			", groupType=" + groupType +
			", startByte=" + startByte +
			", endInt=" + endInt +
			", minModbusAddress=" + minModbusAddress +
			", maxModbusAddress=" + maxModbusAddress +
			"}";
	}
}
